package unv.esiag.uchiha.operations;

import java.io.Serializable;

public class DataObject implements Serializable{
	private static final long serialVersionUID = 1L;
	private String topicName;
	private Serializable serializable;
	public DataObject(String topicName, Serializable serializable) {
		this.topicName = topicName;
		this.serializable = serializable;
	}
	public DataObject clone(){
		return new DataObject(this.topicName, this.serializable);
	}
	public Serializable getSerializable() {
		return serializable;
	}
	public void setTopicName(String topicName) {
		this.topicName = topicName;
	}
	public String getTopicName() {
		return topicName;
	}
	public void setSerializable(Serializable serializable) {
		this.serializable = serializable;
	}

	public String toString() {
		return "TopicName(" + this.topicName + ") Class(" + serializable.getClass().getSimpleName() + ")";
	}
}
